package com.yunc.modules.shop.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunc.modules.shop.entity.ShopOrderItem;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 订单信息
 *
 * @author tao cong cong
 * @create 2018/12/30 9:01 PM
 */
@Data
public class ShopOrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String memberId;

    private String memberName;

    private String orderNumber;

    private Double payment;

    /**
     * 状态:1、未付款，2、已付款，3、已发货，4、退货
     */
    private String status;

    /**
     * 付款时间
     */
    private Date paymentTime;

    /**
     * 地址
     */
    private Long addressId;

    /**
     * 姓名
     */
    private String addressName;

    /**
     * 手机号
     */
    private String addressPhone;

    /**
     * 详细地址
     */
    private String addressDescripts;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    /**
     * 订单商品
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ShopOrderItem> orderItemList;
}
